package com.example.lib_common.base

import androidx.appcompat.widget.Toolbar
import androidx.databinding.ViewDataBinding
import com.example.lib_common.R

abstract class BaseToolBarActivity<VM:BaseViewModel,VDB: ViewDataBinding>:BaseActivity<VM,VDB>() {
    protected lateinit var mToolbar:Toolbar
    override fun initView() {
        initToolbar()
    }

    private fun initToolbar() {
        mToolbar = mBinding.root.findViewById(R.id.toolbar)
        initToolbar(mToolbar)
        mToolbar.setNavigationOnClickListener { _ -> onBackPressed() }
    }
    protected open fun initToolbar(toolbar: Toolbar){

    }
}